<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <iframe src="复制表格当前行.html" width="600" height="500"
        sandbox="allow-same-origin allow-top-navigation allow-forms allow-scripts" frameborder="0">
        该网站使用了框架技术，但是您的浏览器不支持框架，请升级您的浏览器以便正常访问。
    </iframe>
    <button>切换</button>
    <script>
        const btn = document.querySelector('button');
        const fram = document.querySelector('iframe');
        let num = 0;
        btn.addEventListener('click', function () {
            if (num == 0) {
                fram.src = '动态创建列表.html';
                num = 1;
            }
            else {
                fram.src = '复制表格当前行.html';
                num = 0;
            }
        })
    </script>
</body>

</html>